projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b739846
)
waypt: Add function 'waypt_empty_gc_data' to test the state of waypoints gc_data.
author
oliskoli
<oliskoli>
Wed, 17 Sep 2008 19:38:41 +0000
(19:38 +0000)
committer
oliskoli
<oliskoli>
Wed, 17 Sep 2008 19:38:41 +0000
(19:38 +0000)
defs.h
patch
|
blob
|
history
waypt.c
patch
|
blob
|
history
diff --git
a/defs.h
b/defs.h
index cb2590aaabc4eb8e178416e7cf4bf5074a7575d7..ae5fbcb8b87c430abaffdffdd6b3341d7e133518 100644
(file)
--- a/
defs.h
+++ b/
defs.h
@@
-546,6
+546,7
@@
waypoint * find_waypt_by_name(const char *name);
void waypt_backup(signed int *count, queue **head_bak);
void waypt_restore(signed int count, queue *head_bak);
geocache_data *waypt_alloc_gc_data(waypoint *wpt);
+int waypt_empty_gc_data(const waypoint *wpt);
route_head *route_head_alloc(void);
void route_add (waypoint *);
diff --git
a/waypt.c
b/waypt.c
index 065f388dd7be6dd5223788fd15029f08f27c56bc..de4fa17e37051426bbb33f88c6e54f0e722366e2 100644
(file)
--- a/
waypt.c
+++ b/
waypt.c
@@
-627,3
+627,9
@@
waypt_alloc_gc_data(waypoint *wpt)
}
return res;
}
+
+int
+waypt_empty_gc_data(const waypoint *wpt)
+{
+ return (wpt->gc_data == &empty_gc_data);
+}